package org.nmgyjt.springboot.beans.admin;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@ApiModel("获取验证码对象")
@Data
public class CsSystemLoginCodeBean {

    @NotBlank(message = "账号密码必须请输入手机号码")
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$", message = "手机号码格式不对")
    @ApiModelProperty(required = true, value = "发送验证码的手机号码", dataType = "string")
    private String mobile;

    @NotBlank(message = "发送人必须请输入手机号码")
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$", message = "手机号码格式不对")
    private String createdBy;

    private String orgId;

    private String orgName;

}
